<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script src="./View/Admin/script/jquery.js" type="text/javascript"></script> 
<link href="./View/Admin/css/page.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript">
$(document).ready(function(){
        $(".stripe tr").mouseover(function(){  
                //如果鼠标移到class为stripe的表格的tr上时，执行函数
                $(this).addClass("over");}).mouseout(function(){ 
                //给这行添加class值为over，并且当鼠标一出该行时执行函数
                $(this).removeClass("over");})  //移除该行的class
        $(".stripe tr:even").addClass("alt");
                //给class为stripe的表格的偶数行添加class值为alt
});
function changeCheck(){
	var ids = document.getElementsByName("ids[]");
	var mycheck=document.forms["form1"].mycheck;
	
	for(var i =0;i<ids.length;i++){

		if(mycheck.checked == true){
			ids[i].checked = true ;
		}else{
			ids[i].checked = false ;
		}
		
	}
}

function checkform() {
     //判断checkbox是否被选中
	 var ids = document.getElementsByName("ids[]");
     var len = ids.length; 
     var checked = false; 

     for (i = 0; i < len; i++) 
     { 
         if (ids[i].checked == true) 
         { 
             checked = true; 
             break; 
         } 
     } 
     if (!checked) 
     { 
         alert("请至少选择一个项目！"); 
         return; 
     }

     document.form1.submit();
}

</script>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" >
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="24" bgcolor="#353c44"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="1%" height="19" valign="bottom"><div align="center"><img src="./View/Admin/images/tb.gif" width="14" height="14" /></div></td>
                <td width="99%" valign="bottom"><span class="STYLE1">{{$Title}}</span></td>
              </tr>
            </table></td>
		<td><div align="right"><span class="STYLE1">
	     	<img src="./View/Admin/images/add.gif" width="10" height="10" /> 
	      	<a href="admin.php?controller=Admin_User&action=Add">添加</a>  
			<span class="STYLE1"> &nbsp;
	     	 </span></div>
	    </td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td>
<form action="admin.php?controller=Admin_User&action=Delete" method="post" name="form1" onsubmit="checkform();" id="form1" >
<input type="hidden" name="page" value="{{$page}}" />
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce" class="stripe">
      <tr>
	    <th width="25%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">操作</span></div></th> 
        <th width="15%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">用户名称</span></div></th>
        <th width="15%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">级别</span></div></th>
        <th width="15%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">邮件</span></div></th>
        <th width="15%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">姓名</span></div></th>
        <th width="15%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">电话</span></div></th>      
        </tr>
      {{section name=s loop=$list}}
      <tr>
	   <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center"><a href="admin.php?controller=Admin_Manage&action=Add&uid={{$list[s].user_id}}" >添加申报材料</a></div></td>
       <td height="20" bgcolor="#FFFFFF" class="STYLE6"><div align="center" style="text-align:center">{{$list[s].username}}</div></td>
       <td height="20" bgcolor="#FFFFFF" class="STYLE6"><div align="center" style="text-align:center">{{$list[s].rolesname}}</div></td>
       <td height="20" bgcolor="#FFFFFF" class="STYLE6"><div align="center" style="text-align:center">{{$list[s].email}}</div></td>
       <td height="20" bgcolor="#FFFFFF" class="STYLE6"><div align="center" style="text-align:center">{{$list[s].declareperson.name}}</div></td>
       <td height="20" bgcolor="#FFFFFF" class="STYLE6"><div align="center" style="text-align:center">{{$list[s].declareperson.cellphone}}</div></td>
        
      </tr>
      {{/section}}
    </table>
    <div style="margin-left:40%;">{{ webcontrol type="pagernav" name="pagenav" pager=$pagerData controller="Admin_User" action="List" }}</div>
	</form></td>	
  </tr>
</table>
</body>
</html>
